<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title>test</title>
    <script src="mobile-detect.js"></script>
</head>
<body>
        <div id="example"></div>
<script>

	console.log("IMEI: "+navigator.userAgent);
    console.log("------------------")

    var md = new MobileDetect(window.navigator.userAgent);
    console.log( md.mobile() );          
    console.log( md.phone() );          
    console.log( md.tablet() );          
    console.log( md.userAgent() );       
    console.log( md.os() );              
    console.log( md.is('iPhone') );      
    console.log( md.is('bot') );         
    console.log( md.version('Webkit') );         
    console.log( md.versionStr('Build') );       
    console.log( md.match('playstation|xbox') );

    console.log("------------------")

    txt = "<p>浏览器代号: " + navigator.appCodeName + "</p>";
    txt+= "<p>浏览器名称: " + navigator.appName + "</p>";
    txt+= "<p>浏览器版本: " + navigator.appVersion + "</p>";
    txt+= "<p>启用Cookies: " + navigator.cookieEnabled + "</p>";
    txt+= "<p>硬件平台: " + navigator.platform + "</p>";
    txt+= "<p>用户代理: " + navigator.userAgent + "</p>";
    txt+= "<p>用户代理语言: " + navigator.systemLanguage + "</p>";
    document.getElementById("example").innerHTML=txt;

</script>
</body>
</html>
